package com.biz.primus.ms.commodity.dao.po;


import com.biz.primus.ms.base.jpa.po.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * Created by jiangnan on 2017/6/24.
 * 商品盒子 管理一堆商品
 */
@Entity
@Table(name = "pro_product_box")
public class ProductBox extends BaseEntity implements Serializable {

    /**
     * 商品盒子名称
     */
    @Column
    private String boxName;


    @OneToMany(mappedBy = "productBox", cascade = CascadeType.ALL, orphanRemoval = true)
    private List<BoxProduct> boxProducts;

    public String getBoxName() {
        return boxName;
    }

    public void setBoxName(String boxName) {
        this.boxName = boxName;
    }

    public List<BoxProduct> getBoxProducts() {
        return boxProducts;
    }

    public void setBoxProducts(List<BoxProduct> boxProducts) {
        this.boxProducts = boxProducts;
    }
}
